FROM python:3.10-slim-buster

ADD . /opt/ /

WORKDIR /opt/amazon_spider/

RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \
    && apt-get update \
    && apt install nodejs -y \
    && apt-get install -y vim \
    && mkdir -p /opt/amazon_spider/log/ \
    && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 

# CMD ["python","app_run.py"]
# CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5009", "app_run:app"]
